import service from "../utils/request";

export function AmountList(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/amount/`,
    data
  })
}

export function Pay(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/pay/`,
    data
  })
}

// 支付查询订单状态
export function OrderStatus(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/orderStatus/`,
    data
  })
}

// 租车订单
export function OrderList(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/orderList/`,
    data
  })
}

// 寻找正在使用的车辆
export function CarsActivation(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/carsActivation/`,
    data
  })
}

// 取车
export function CarsGet(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/carsGet/`,
    data
  })
}

// 还车
export function CarsReturn(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/carsReturn/`,
    data
  })
}

// 取消
export function CarsCancel(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/carsCancel/`,
    data
  })
}

export function CarsReturns(data = {}){
  return service.request({
    method: "post",
    url: `${process.env.VUE_APP_API_WEB}/carsReturnS/`,
    data
  })
}
